<template>
	<view>
		<view class="top"></view>
		<view class="search" style="width: 80%">
			<u--input shape='circle' prefixIconStyle='font-size:40rpx' prefixIcon="search" placeholder="请输入内容">
			</u--input>
		</view>
		<u-row customStyle="margin-bottom: 10px">
			<u-col span="3"><!-- 侧边栏 -->
				<view v-for="(item, index) in itemArr" class="sidebar">
					<view class="list-cell" v-for="(item, index) in item" style="background-color: #f5f5f5;">
						{{item}}
					</view>
					</u-index-item>
				</view>
			</u-col>
			<u-col span="9">   <!-- 商品区 -->
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
				<view class="goods_list">
					<view class="goodsImg">
						<img src="https://img2.baidu.com/it/u=1055146869,905681760&fm=253&fmt=auto&app=138&f=PNG?w=237&h=233">
						</view>
					<view class="detail">
						<view class="title">云南大红玫瑰</view>
						<view class="detail_bottom">
							<view class="price"><text>￥77</text></view>
							<view class="cart"><u-button shape="circle" color="#fdd701" text="加入购物车"></u-button></view>
						</view>
					</view>
				</view>
			</u-col>
		</u-row>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemArr: [
					['鲜花', '盆栽', '礼盒', '花束定制', '花车定制', '花篮定制'],

				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.top{
		position: fixed;
		width: 100%;
		height: 200rpx;
		background-color: #f5f5f5;
		z-index: 10;
	}
	.u-col-9{
		margin-top: 230rpx;
	}
	.search{
		margin: 100rpx 0 20rpx 20rpx;
		position: fixed;
		z-index: 99;
	}
	.sidebar{
		position: fixed;
		width: 207rpx;
		top: 233rpx;
		left: -30rpx;
	}
	.list-cell {
		height: 100rpx;
		line-height: 100rpx;
		width: 100%;
		overflow: hidden;
		color: #323233;
		background-color: #fff;
		text-align: center;
		padding-left: 12rpx;
	}
	.goods_list{
		display: flex;
		height: 300rpx;
		background-color: #ffffff;
		.goodsImg{
			flex: 2;
			width: 300rpx;
			height: 300rpx;
			img{
				object-fit:cover;
				width: 100%;
				height: 100%;
			}
		}
		.detail{
			flex: 3;
			height: 300rpx;
			.title{
				padding: 30rpx 10rpx;
				font-size: 40rpx;
				font-weight: 600;
			}
			.detail_bottom{
				margin-top: 100rpx;
				padding-right: 10rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 40rpx;
				.price{
					color: #d3140e;
					font-size: 50rpx;
					height: 5rpx;
				}
				.cart{
					width: 150rpx;
					height: 30rpx;
				}
			}
		}
	}
</style>
